package server;

public class Queue {
	// kto (id serwera), ile ok, komenda, id rekordu, rekord
	
	private int sok;
	private String command;
	private int recordId;
	private String record;
	
	public Queue(int sok, String command, int recordId, String record) {
		this.sok=sok;
		this.command=command;
		this.recordId=recordId;
		this.record=record;
	}
	
	
	public int getSok() {
		return sok;
	}
	public void setSok(int sok) {
		this.sok = sok;
	}
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public int getRecordId() {
		return recordId;
	}
	public void setRecordId(int recordId) {
		this.recordId = recordId;
	}
	public String getRecord() {
		return record;
	}
	public void setRecord(String record) {
		this.record = record;
	}
	public Queue updateOKs(int i) {
		this.sok--;
		return this;
	}

}
